<?php
namespace app\iceyadmin\controller;

use think\Controller;
/**
 * Created by PhpStorm.
 * User: thefree
 * Date: 17-8-6
 * Time: 上午12:09
 */

class Index extends Controller{
    private $htmlConfig = [
//        首页头标题
        'title'=>"IceyAdmin",
//        首页图标(需要ico)
        'icon'=>"/IA/iceyadmin.ico",


//        头部配置
        'header'=>[
            //头部LOGO图片 高度为50 推荐不长图
            'headerIcon'=>"/IA/image/iceyadmin.png",
            //头部标题文字
            'headerTitle'=>"IceyAdmin后台管理系统",
            //头部信息
            'headerMessage'=>[],
        ],

        'Config'=>[
//            是否左侧全部打开
              'navIsOk'=>true,
        ],
//        左侧链接配置
        'nav'=>[
            //=========复制块配置===========
            /**
             * headerTile:一级菜单头部标题
             * headerIcon:一级菜单头部图标
             * data:二级配置菜单
             * dataTitle:二级菜单头部标题
             * dataIcon:二级菜单头部图标
             * dataURL:二级菜单跳转链接
             */
            [
               "headerIcon"=>"&#xe607;",
               "headerTile"=>"信息管理",
               "data"=>[
                   [
                       "dataTitle"=>"会员添加",
                       "dataURL"=>"/iceyadmin/AllMessage/addUser",
                   ],
                   [
                       "dataTitle"=>"普通会员管理",
                       "dataURL"=>"http://www.127.frj.com/index/index/Nownew",
                   ],
                   [
                       "dataTitle"=>"VIP会员管理",
                       "dataURL"=>"http://www.127.frj.com/index/index/Nownew",
                   ],
                   [
                       "dataTitle"=>"超市管理",
                       "dataURL"=>"http://www.127.frj.com",
                   ],
               ]
            ],
            [
                "headerIcon"=>"&#xe69a;",
                "headerTile"=>"订单管理",
                "data"=>[
                    [
                        "dataTitle"=>"全部订单",
                        "dataURL"=>"http://www.127.frj.com",
                    ],
                    [
                        "dataTitle"=>"会员管理",
                        "dataURL"=>"http://www.127.frj.com/index/index/Nownew",
                    ],
                    [
                        "dataTitle"=>"黑名单",
                        "dataURL"=>"http://www.127.frj.com",
                    ],
                ]
            ],
            [
                "headerIcon"=>"&#xe689;",
                "headerTile"=>"所有管理",
                "data"=>[
                    [
                        "dataTitle"=>"活动",
                        "dataURL"=>"http://www.127.frj.com",
                    ],
                    [
                        "dataTitle"=>"优惠券",
                        "dataURL"=>"http://www.127.frj.com/index/index/Nownew",
                    ],
                    [
                        "dataTitle"=>"满减",
                        "dataURL"=>"http://www.127.frj.com",
                    ],
                ]
            ],
            [
                "headerIcon"=>"&#xe62d;",
                "headerTile"=>"系统管理",
                "data"=>[
                    [
                        "dataTitle"=>"APP推送",
                        "dataURL"=>"http://www.127.frj.com",
                    ],
                    [
                        "dataTitle"=>"分享来源",
                        "dataURL"=>"http://www.127.frj.com/index/index/Nownew",
                    ],
                    [
                        "dataTitle"=>"管理员",
                        "dataURL"=>"http://www.127.frj.com",
                    ],
                ]
            ],





            //============================
        ],
    ];

    /**
     * 属性：HTML
     * 首页
     */
    public function Index(){
        $this->assign("IndexConfig",$this->htmlConfig);
        return $this->fetch("Index/index");
    }
	 /**
     * 属性：HTML
     * 欢迎界面
    */
    public function weclome(){
        return $this->fetch("Index/weclome");
    }
    /**
     * 属性：HTML
     * 登录界面
     */
    public function Login(){
        return $this->fetch("Index/login");
    }
}